package com.dime.physical.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dime.physical.mapper.DimePhysicalMrDeaseexceptionMapper;
import com.dime.physical.domain.DimePhysicalMrDeaseexception;
import com.dime.physical.service.IDimePhysicalMrDeaseexceptionService;

/**
 * 总检Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-10
 */
@Service
public class DimePhysicalMrDeaseexceptionServiceImpl implements IDimePhysicalMrDeaseexceptionService 
{
    @Autowired
    private DimePhysicalMrDeaseexceptionMapper dimePhysicalMrDeaseexceptionMapper;

    /**
     * 查询总检
     * 
     * @param id 总检主键
     * @return 总检
     */
    @Override
    public DimePhysicalMrDeaseexception selectDimePhysicalMrDeaseexceptionById(String id)
    {
        return dimePhysicalMrDeaseexceptionMapper.selectDimePhysicalMrDeaseexceptionById(id);
    }

    /**
     * 查询总检列表
     * 
     * @param dimePhysicalMrDeaseexception 总检
     * @return 总检
     */
    @Override
    public List<DimePhysicalMrDeaseexception> selectDimePhysicalMrDeaseexceptionList(DimePhysicalMrDeaseexception dimePhysicalMrDeaseexception)
    {
        return dimePhysicalMrDeaseexceptionMapper.selectDimePhysicalMrDeaseexceptionList(dimePhysicalMrDeaseexception);
    }

    /**
     * 新增总检
     * 
     * @param dimePhysicalMrDeaseexception 总检
     * @return 结果
     */
    @Override
    public int insertDimePhysicalMrDeaseexception(DimePhysicalMrDeaseexception dimePhysicalMrDeaseexception)
    {
        dimePhysicalMrDeaseexception.setCreateTime(DateUtils.getNowDate());
        return dimePhysicalMrDeaseexceptionMapper.insertDimePhysicalMrDeaseexception(dimePhysicalMrDeaseexception);
    }

    /**
     * 修改总检
     * 
     * @param dimePhysicalMrDeaseexception 总检
     * @return 结果
     */
    @Override
    public int updateDimePhysicalMrDeaseexception(DimePhysicalMrDeaseexception dimePhysicalMrDeaseexception)
    {
        dimePhysicalMrDeaseexception.setUpdateTime(DateUtils.getNowDate());
        return dimePhysicalMrDeaseexceptionMapper.updateDimePhysicalMrDeaseexception(dimePhysicalMrDeaseexception);
    }

    /**
     * 批量删除总检
     * 
     * @param ids 需要删除的总检主键
     * @return 结果
     */
    @Override
    public int deleteDimePhysicalMrDeaseexceptionByIds(String[] ids)
    {
        return dimePhysicalMrDeaseexceptionMapper.deleteDimePhysicalMrDeaseexceptionByIds(ids);
    }

    /**
     * 删除总检信息
     * 
     * @param id 总检主键
     * @return 结果
     */
    @Override
    public int deleteDimePhysicalMrDeaseexceptionById(String id)
    {
        return dimePhysicalMrDeaseexceptionMapper.deleteDimePhysicalMrDeaseexceptionById(id);
    }
}
